package com.cloudcc.mobile.service;

import com.cloudcc.mobile.dao.UserEngine;
import com.cloudcc.mobile.dao.impl.UserEngineImpl;
import com.loopj.android.http.RequestHandle;

/**
 * 登录 服务
 * 
 * @author wangzhiqiang
 * @date 2015-6-5 上午11:44:10
 * 
 */
public class LoginService {
	private UserEngine logindao = new UserEngineImpl();

	public String login(String name, String pwd) throws Exception {
		return logindao.login(name, pwd);
	}

	public RequestHandle login_w(String name, String pwd) {
		// return logindao.login_w(name, pwd);
		return null;
	}

	/**
	 * 获取app的服务器地址
	 * 
	 * @param data
	 * @return
	 */
	public String getAppUrl(String data) {
		return logindao.getAppUrl(data);
	}

	public RequestHandle getAppUrl_w(String data) {
		// return logindao.getAppUrl_w(data);
		return null;
	}

}
